package com.xuecheng.content.feignclient;


import com.xuecheng.content.feignclient.model.CourseIndex;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * ClassName: SearchServiceClient
 * Package: com.xuecheng.content.feignclient
 * Description:搜索服务远程接口
 *
 * @Author Endeavor-ZQB
 * @Create 2023/2/14 0:08
 * @Version 1.0
 */
@FeignClient(value = "search" ,fallbackFactory = SearchServiceClientFallbackFactory.class)
public interface SearchServiceClient {
    @ApiOperation("添加课程索引")
    @PostMapping("/search/index/course")
    public Boolean add(@RequestBody CourseIndex courseIndex);
}
